package com.gigmissions.client.ui;

import com.gigmissions.client.config.GigMissionsMessages;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class SearchPanel extends HorizontalPanel{

	@Inject
	public SearchPanel(Button searchButton, TextBox searchBox,GigMissionsMessages messages){
		
		searchButton.setText(messages.searchButtonText());
		setVerticalAlignment(ALIGN_MIDDLE);
		setHorizontalAlignment(ALIGN_LEFT);
		this.setSpacing(3);
		add(new Label("GIGMISSIONS"));
		add(searchBox);
		add(searchButton);
		
		
	}
	
}
